// 定义详情页的接口请求
import axios from '../https/axios'

import { detailParamsType } from '@/types/paramsType'
// 1.获取商品分页列表数据
export function getDetailData(data: detailParamsType) {
    return axios({
        method: 'get',
        url: '/api/pro/detail/' + data.proid,
        params: data
    })
}
// 2.点击加入购物车
export function add(data:any) {
    return axios({
        method: 'post',
        url: '/api/cart/add',
        data: data
    })
}
